Connect-mailbox  Confirm not working
I am trying to reconnect a large number of mailboxes and I am unable to suppress the confirm e.g. Confirm Do you want to connect this mailbox to user "user" with the alias "Alias"? [Y] Yes [A] Yes to All [N] No [L] No to All [?] Help (default is "Y"): n I have checked my syntax with the article http://technet.microsoft.com/en-us/library/aa997878.aspx and it looks right. $User = import-csv "C:\Exchange\Reconnect.csv" foreach ($line in $User) { Connect-Mailbox -identity ($line.name) -Database "DB1" -Alias($line.Alias) -Confirm:$False } I have used the -Confirm:$False with my disable mailbox script and that works fine. Any ideas?
October 4th, 2012 12:00pm

Hi Have you seen this thread regarding the same issue: http://social.technet.microsoft.com/Forums/en-US/exchange2010/thread/6ab34434-c784-41dd-aa98-8882cec033e8 Steve
Free Windows Admin Tool Kit Click here and download it now
October 4th, 2012 12:05pm

Hi Have you seen this thread regarding the same issue: http://social.technet.microsoft.com/Forums/en-US/exchange2010/thread/6ab34434-c784-41dd-aa98-8882cec033e8 Steve Hi Steve I did have a search around but didnt not find that. Quote from the link From Connect-Mailbox cmdlet help: "The User parameter specifies the user object in Active Directory to which you want to connect the Exchange mailbox object. If you don't specify this parameter, the command uses the LegacyExchangeDN and DisplayName attributes of the Exchange mailbox object to find a user account that matches the mailbox object. If it can't find a unique match, it doesn't connect the mailbox." So the Connect-Mailbox cmdlet without User parameter tries identify object in AD and asks if it correct even if "-Confirm:$false" defined. That statement does make sense although slightly annoying as I have the Alias attribute and data to work with. I have changed my script to user and it works fine. Thanks for yours and Yaroslav Tsymbal help.
October 4th, 2012 12:19pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics